package cn.lingyangwl.agile.model.module.config.param.storage;

import cn.lingyangwl.agile.model.enums.ConfigKeyEnum;
import cn.lingyangwl.agile.model.module.config.param.StorageParam;
import com.alibaba.fastjson2.JSON;
import lombok.Getter;
import lombok.Setter;
import org.springframework.stereotype.Component;

/**
 * 腾讯云 文件存储
 * @author shenguangyang
 */
@Getter
@Setter
@Component
public class TencentStorageParam extends StorageParam<TencentStorageParam> {

    @Override
    protected TencentStorageParam jsonToObject(String json) {
        return JSON.parseObject(json, TencentStorageParam.class);
    }

    @Override
    public ConfigKeyEnum configKey() {
        return ConfigKeyEnum.STORAGE_TENCENT;
    }
}
